<template>
  <by-background />

  <by-navigation-bar title="技师中心" />

  <view class="padding-20">
    <view class="padding-tb-10 padding-lr-20 bg-white page">
      <by-cell
        v-for="(item,index) in list"
        :key="index"
        :label="item.label"
        :border="index < list.length - 1"
        show-arrow
        @click="jump(item.src)"
      />
    </view>
  </view>
</template>

<script setup lang="ts">
import { jump } from '@/common/util'

const list = [
  { label: '收到联系', src: '/pages/relation-history/index?type=1' },
  { label: '收到预约', src: '/pages/subscribe-history/index?type=1' },
  { label: '个人信息', src: '/pages/user/index' },
  { label: '服务设置', src: '/pages/service-setting/index' },
  { label: '实名认证', src: '/pages/approve/index?type=2' },
  { label: '资质认证', src: '/pages/approve/index' },
  { label: '收到评价', src: '/pages/my-assessment/index' }
]
</script>

<style scoped lang="scss">
.page{
  border-radius: 16rpx;
}
</style>
